package cn.topcodes.tcsf.app.mapper;

import cn.topcodes.tcsf.app.domain.entity.HelpArticle;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

/**
 * HelpArticle Mapper
 *
 * @author Yvan
 * @date 2018-01-26 15:50:03
 */
public interface HelpArticleMapper extends Mapper<HelpArticle> {

    @Select("select max(sort) from t_app_help_article where catalog_id = #{0}")
    Integer findMaxSort(Long catalogId);
}
